What is density in minecraft?

Minecraft doesn't have a traditional density mechanic like real-world physics. However, there are some implicit behaviors and characteristics that can be loosely associated with the concept of density in terms of how blocks and entities interact with each other, specifically related to buoyancy and displacement.

  • Buoyancy: Some blocks are buoyant and float in water. The most notable example is boats. Items dropped in water also float to the surface. This can be seen as those blocks having a "density" less than that of water.

  • Sinking: Most solid blocks sink in water. This is analogous to those blocks having a "density" greater than that of water. Gravity dictates that these denser blocks will fall to the bottom.

  • Liquids: Liquids like water and lava have density-like properties in that they flow downwards and spread out until they fill a space or reach a level. Lava has different "density" in a gameplay sense as it behaves differently than water, notably causing damage and setting things on fire.

  • Displacement: Minecraft doesn't accurately simulate displacement in the way real-world physics does. However, the filling of spaces with liquids can be considered a rudimentary form of displacement. When water fills a space previously occupied by air, it "displaces" the air.

It's important to remember that these are simplifications and analogies. Minecraft prioritizes gameplay and performance over realistic physics simulations.